package com.sofar.gems.framework.mapper;

import com.sofar.gems.framework.entity.SysUser;
import com.sofar.gems.framework.entity.TrainInfo;

import java.util.List;

/**
 * @author 阿林
 * @description: 培训机构
 */
public interface TrainInfoMapper {

    //主键删除
    int deleteByPrimaryKey(Integer trainId);

    //全参插入
    int insert(TrainInfo record);

    //非全参插入
    int insertSelective(TrainInfo record);


    //主键查询
    TrainInfo selectByPrimaryKey(Integer trainId);
    //查询所有
    List<TrainInfo> selectAll();

    //非全参数更新
    int updateByPrimaryKeySelective(TrainInfo record);

    //全参数更新
    int updateByPrimaryKey(TrainInfo record);
}
